package com.slt.developkitservice.service.impl;

import com.slt.developkitpersistent.dto.UserDto;
import com.slt.developkitpersistent.model.User;
import com.slt.developkitservice.service.Swagger2Service;
import org.springframework.stereotype.Service;

@Service
public class Swagger2ServiceImpl implements Swagger2Service {
    @Override
    public User getUserInfo(UserDto userDto) {
        return getUser();
    }

    private User getUser() {
        User user = new User();
        user.setName("slt");
        user.setCode("010-4566");
        user.setUrl("http://localhost:8888/sltUrl");
        user.setProvinceCode("hebei");
        user.setCityCode("xingtai");

        return user;
    }
}
